package com.le.buddha.mobile;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户购买商品
 * </p>
 *
 * @author guole
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_user_good")
public class UserGood implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer goodId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 支付订单id
     */
    private Integer orderId;

    /**
     * 商品购买价
     */
    private Integer currentPrice;

    /**
     * 商品值
     */
    private Integer goodValue;

    /**
     * 已用商品值
     */
    private Integer useGoodValue;

    /**
     * 商品过期时间
     */
    private LocalDateTime expirationDate;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
